package com.aivin.web;

import com.aivin.entity.TbPic;
import com.aivin.entity.TbUser;
import com.aivin.service.PicService;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import java.util.List;


@Controller//
@RequestMapping("/search")//
public class SearcheController extends MultiActionController {
    @Autowired
    private PicService picService  ;


    /***
     *
     http://localhost:8081/findYou/search/searchKeyWord   //css丢失
     */
    @RequestMapping(value = "/searchKeyWord", method = {RequestMethod.GET,RequestMethod.POST})
//    public String searchKeyWord( Model model   ,  @RequestParam("keyWord") String keyWord  ) {
    public String searchKeyWord( Model model    ) {


        System.out.println(" come into search controll");
//        System.out.println(" >>>>>>>>>>>>> keyWord="+keyWord);
//        model.addAttribute("jsonStr" ,jsonStr) ;

        return "search";
    }






}